import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '姓名',
            dataIndex: 'userName',
            width: 200,
        },
        {
            title: '证件类型（1身份证，2护照 3港澳台,4军官证,5其他）',
            dataIndex: 'identityType',
            width: 200,
        },
        {
            title: '证件号',
            dataIndex: 'identityNo',
            width: 200,
        },
        {
            title: '延误险预约Id',
            dataIndex: 'delayriskId',
            width: 200,
        },
        {
            title: '出生日期',
            dataIndex: 'birthDate',
            width: 200,
        },
        {
            title: '性别',
            dataIndex: 'sex',
            width: 200,
        },
        {
            title: '延误证明图片',
            dataIndex: 'proveImg',
            width: 200,
        },
        {
            title: '登机牌',
            dataIndex: 'boardingPassImg',
            width: 200,
        },
        {
            title: '银行卡号',
            dataIndex: 'bankNo',
            width: 200,
        },
        {
            title: '开户行',
            dataIndex: 'depositBank',
            width: 200,
        },
        {
            title: '是否申请（1未申请。2申请）',
            dataIndex: 'isApply',
            width: 200,
        },
        {
            title: '是否申请（1无需受理2待受理3受理通过4受理拒绝）',
            dataIndex: 'isCheck',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'handleDate',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '姓名',
            field: 'userName',
            component: 'Input',
            required: true,
        },
        {
            label: '证件类型（1身份证，2护照 3港澳台,4军官证,5其他）',
            field: 'identityType',
            component: 'Input',
            required: true,
        },
        {
            label: '证件号',
            field: 'identityNo',
            component: 'Input',
            required: true,
        },
        {
            label: '延误险预约Id',
            field: 'delayriskId',
            component: 'Input',
            required: true,
        },
        {
            label: '出生日期',
            field: 'birthDate',
            component: 'Input',
            required: true,
        },
        {
            label: '性别',
            field: 'sex',
            component: 'Input',
            required: true,
        },
        {
            label: '延误证明图片',
            field: 'proveImg',
            component: 'Input',
            required: true,
        },
        {
            label: '登机牌',
            field: 'boardingPassImg',
            component: 'Input',
            required: true,
        },
        {
            label: '银行卡号',
            field: 'bankNo',
            component: 'Input',
            required: true,
        },
        {
            label: '开户行',
            field: 'depositBank',
            component: 'Input',
            required: true,
        },
        {
            label: '是否申请（1未申请。2申请）',
            field: 'isApply',
            component: 'Input',
            required: true,
        },
        {
            label: '是否申请（1无需受理2待受理3受理通过4受理拒绝）',
            field: 'isCheck',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'handleDate',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
